<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <script>
         function callAndroid(){
          //定义协议
          document.location="js://webview?location=1";
        }
     
</script>

</head>
<body>

<button type="button" id="button1" onclick="callAndroid()" >JS点击调用安卓的代码</button>
</body>
</html>
